\(\int \frac {a+b \log (c x^n)}{(d+\frac {e}{x}) x} \, dx\) [333]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (warning: unable to verify)
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 23, antiderivative size = 39 \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x}{e}\right )}{d}+\frac {b n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{d} \]

[Out]

(a+b*ln(c*x^n))*ln(1+d*x/e)/d+b*n*polylog(2,-d*x/e)/d

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2370, 2354, 2438} \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\frac {\log \left (\frac {d x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d}+\frac {b n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{d} \]

[In]

Int[(a + b*Log[c*x^n])/((d + e/x)*x),x]

[Out]

((a + b*Log[c*x^n])*Log[1 + (d*x)/e])/d + (b*n*PolyLog[2, -((d*x)/e)])/d

Rule 2354

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[Log[1 + e*(x/d)]*((a +
b*Log[c*x^n])^p/e), x] - Dist[b*n*(p/e), Int[Log[1 + e*(x/d)]*((a + b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2370

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)/(x_))^(q_.)*(x_)^(m_.), x_Symbol] :> Int[(e + d*
x)^q*(a + b*Log[c*x^n])^p, x] /; FreeQ[{a, b, c, d, e, m, n, p}, x] && EqQ[m, q] && IntegerQ[q]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps \begin{align*} \text {integral}& = \int \frac {a+b \log \left (c x^n\right )}{e+d x} \, dx \\ & = \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x}{e}\right )}{d}-\frac {(b n) \int \frac {\log \left (1+\frac {d x}{e}\right )}{x} \, dx}{d} \\ & = \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x}{e}\right )}{d}+\frac {b n \text {Li}_2\left (-\frac {d x}{e}\right )}{d} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.95 \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x}{e}\right )+b n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{d} \]

[In]

Integrate[(a + b*Log[c*x^n])/((d + e/x)*x),x]

[Out]

((a + b*Log[c*x^n])*Log[1 + (d*x)/e] + b*n*PolyLog[2, -((d*x)/e)])/d

Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 0.08 (sec) , antiderivative size = 151, normalized size of antiderivative = 3.87

method result size
risch \(\frac {b \ln \left (x^{n}\right ) \ln \left (d x +e \right )}{d}-\frac {b n \ln \left (d x +e \right ) \ln \left (-\frac {d x}{e}\right )}{d}-\frac {b n \operatorname {dilog}\left (-\frac {d x}{e}\right )}{d}+\frac {\left (-\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}-\frac {i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{2}+b \ln \left (c \right )+a \right ) \ln \left (d x +e \right )}{d}\) \(151\)

[In]

int((a+b*ln(c*x^n))/(d+e/x)/x,x,method=_RETURNVERBOSE)

[Out]

b*ln(x^n)*ln(d*x+e)/d-b/d*n*ln(d*x+e)*ln(-d*x/e)-b/d*n*dilog(-d*x/e)+(-1/2*I*b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I
*c*x^n)+1/2*I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+1/2*I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2-1/2*I*b*Pi*csgn(I*c*x^n)^3
+b*ln(c)+a)*ln(d*x+e)/d

Fricas [F]

\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x} \,d x } \]

[In]

integrate((a+b*log(c*x^n))/(d+e/x)/x,x, algorithm="fricas")

[Out]

integral((b*log(c*x^n) + a)/(d*x + e), x)

Sympy [F]

\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\int \frac {a + b \log {\left (c x^{n} \right )}}{d x + e}\, dx \]

[In]

integrate((a+b*ln(c*x**n))/(d+e/x)/x,x)

[Out]

Integral((a + b*log(c*x**n))/(d*x + e), x)

Maxima [F]

\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x} \,d x } \]

[In]

integrate((a+b*log(c*x^n))/(d+e/x)/x,x, algorithm="maxima")

[Out]

b*integrate((log(c) + log(x^n))/(d*x + e), x) + a*log(d*x + e)/d

Giac [F]

\[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{{\left (d + \frac {e}{x}\right )} x} \,d x } \]

[In]

integrate((a+b*log(c*x^n))/(d+e/x)/x,x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)/((d + e/x)*x), x)

Mupad [F(-1)]

Timed out. \[ \int \frac {a+b \log \left (c x^n\right )}{\left (d+\frac {e}{x}\right ) x} \, dx=\int \frac {a+b\,\ln \left (c\,x^n\right )}{x\,\left (d+\frac {e}{x}\right )} \,d x \]

[In]

int((a + b*log(c*x^n))/(x*(d + e/x)),x)

[Out]

int((a + b*log(c*x^n))/(x*(d + e/x)), x)